package org.hoyi.util;

/**
 *          Author:ellen
 *          Email:ellen@kuaifish.com
 *          CreateDate:2015-05-20
 *          ModifyDate:2015-06-20
 *          hoyi entities @ hoyi.org
 *          使用请在项目关于内标注hoyi版权，
 *          hoyi版权归hoyi.org所有
 */
public class CutStrUtil
{
  public static String CutContent(String _template, String repHeader, String repEnd)
  {
    int startIndex = _template.toLowerCase().indexOf(repHeader.toLowerCase());
    int endIndex = _template.toLowerCase().indexOf(repEnd.toLowerCase());

    String FirstRep = _template.substring(startIndex, endIndex + repEnd.length());
    return FirstRep;
  }
}

